package cn.tedu.smartos.health.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class HealthData {
    @ApiModelProperty(value = "记录ID")
    private Long recordId;
    @ApiModelProperty(value = "老人ID")
    private Long elderlyUserId;
    @ApiModelProperty(value = "设备ID")
    private Long deviceId;
    @ApiModelProperty(value = "数据类型")
    private Integer dataType;
    @ApiModelProperty(value = "数据值")
    private String dataValue;
    @ApiModelProperty(value = "单位")
    private String unit;
    @ApiModelProperty(value = "测量时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date measureTime;
    @ApiModelProperty(value = "上传时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;
    @ApiModelProperty(value = "是否正常")
    private Integer isNormal;
    @ApiModelProperty(value = "备注")
    private String remark;
}
